package org.harsh.common;

import com.alibaba.druid.pool.DruidDataSource;
import io.netty.util.CharsetUtil;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import javax.sql.DataSource;
import java.nio.charset.Charset;

//@Configuration
public class Config {
    public static final Charset DEFAULT_CHARSET = CharsetUtil.UTF_8;
    public static final String DEFAULT_KEY = "ecdh_aes_sha256_KeySeed";
    public static final int fileChunkSize = 10 * 1024;

//    @ConfigurationProperties(prefix = "spring.datasource")
//    @Bean
//    public DataSource dataSource(){
//        return new DruidDataSource();
//    }

}
